<template>
  <div class="container">
    <!--   <RouterView />  或者      <RouterView></RouterView> -->
    <router-view></router-view>

    <!-- 部分页面不需要底部导航栏 例如：登录页，详情页 -->
    <router-view name="footer"></router-view>
  </div>


</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;

    .header {
      height: 50px;
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 50px;
    background: #a7a6a6;

    ul {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      a {
        flex: 1;
        text-align: center;
        color: #000;
        text-decoration: none;

        &.router-link-active {
          color: red
        }

        span {
          font-size: 20px;
        }

      }
    }
  }
}
</style>
